import request from "@/utils/request";

export function getList(params) {
  return request({
    url: "/member/mpUser/getList",
    method: "get",
    params,
  });
}
export function detail(id) {
  return request({
    url: "/member/mpUser/detail",
    method: "get",
    params: { id },
  });
}
export function getUserByName(nickname) {
  return request({
    url: "/member/mpUser/getUserByName",
    method: "get",
    params: { nickname },
  });
}
export function setAdmin(id) {
  return request({
    url: "/member/mpUser/setAdmin",
    method: "post",
    data: { id },
  });
}
export function getBalanceLog(params) {
  return request({
    url: "/member/mpUser/getBalanceLog",
    method: "GET",
    params,
  });
}
export function changeMoney(data) {
  return request({
    url: "/member/mpUser/changeMoney",
    method: "POST",
    data,
  });
}
export function clearPosterCache(id) {
  return request({
    url: "/member/mpUser/clearPosterCache",
    method: "POST",
    data: { id },
  });
}
